
<?php if ($grant == 'hotel'): ?>
		<?php if ($addRoom || $editRoom): ?>
				<h1>Information Room Type Hotel</h1><BR>
				<H3><?=($addRoom)?'Add room':'Edit room'?></H3><BR>
				<form method="post" action="http://<?=$_SERVER['HTTP_HOST']?>/hotelbooking/index.php/backend/hotel/<?=($addRoom)?'add':'edit'?>/room">
						Room name : <INPUT TYPE="text" NAME="rt_name" value="<?=$roomToEdit['name']?>"><BR>
						description : <INPUT TYPE="text" NAME="rt_description" value="<?=$roomToEdit['description']?>"><BR>
						quantity : <INPUT TYPE="text" NAME="rt_quantity" value="<?=$roomToEdit['quantity']?>"><BR>
						price : <INPUT TYPE="text" NAME="rt_price" value="<?=$roomToEdit['price']?>"><BR>
						<?php if ($addRoom): ?>
								<INPUT TYPE="hidden" NAME="hotel_id" value="<?=$h_id?>">
						<?php else: ?>
								<INPUT TYPE="hidden" NAME="rt_id" value="<?=$rt_id?>">
						<?php endif; ?>
						<INPUT TYPE="submit" name="submit_rt" value="<?=($addRoom)?'Add Room':'Edit Room'?>">
				</form>
		<?php elseif (!$insertHotel): ?>
				<h1>Information Hotel</h1><BR>
				<form method="post" action="http://<?=$_SERVER['HTTP_HOST'].'/hotelbooking/index.php/backend/hotel/'?><?=($hotelToEdit)?'edit':'add'?>">
						name : <INPUT TYPE="text" NAME="hotel_name" value="<?=$hotelToEdit['name']?>"><BR>
						city : <INPUT TYPE="text" NAME="hotel_city" value="<?=$hotelToEdit['city']?>"><BR>
						description : <INPUT TYPE="text" NAME="hotel_description" value="<?=$hotelToEdit['description']?>"><BR>
						location : <INPUT TYPE="text" NAME="hotel_location" value="<?=$hotelToEdit['location']?>"><BR>
						address : <INPUT TYPE="text" NAME="hotel_addr" value="<?=$hotelToEdit['address']?>"><BR>
						hint : <INPUT TYPE="text" NAME="hotel_hint" value="<?=$hotelToEdit['hint']?>"><BR>
						<INPUT TYPE="hidden" NAME="hotel_id" value="<?=$hotelToEdit['id']?>">
						<h3>Hotel facilities</h3>
						<div>
					
								<INPUT TYPE="checkbox" NAME="fac[]" value="Swimming Pool" <?=(array_search('Swimming Pool',$arr_option)>-1)?'checked':''?>>Swimming Pool<BR>
								<INPUT TYPE="checkbox" NAME="fac[]" value="Gym/Fitness" <?=(array_search('Gym/Fitness',$arr_option)>-1)?'checked':''?>>Gym/Fitness<BR>
								<INPUT TYPE="checkbox" NAME="fac[]" value="Car Park" <?=(array_search('Car Park',$arr_option)>-1)?'checked':''?>>Car Park<BR>
								<INPUT TYPE="checkbox" NAME="fac[]" value="Spa/Sauna" <?=(array_search('Spa/Sauna',$arr_option)>-1)?'checked':''?>>Spa/Sauna<BR>
								
						</div>
						<INPUT TYPE="submit" name="submit_hotel" value="<?=($hotelToEdit)?'Edit':'Add'?>">
				</form>
		<?php else: ?>
				Insert Hotel Data Complete !!!<BR>
				<A HREF="http://<?=$_SERVER['HTTP_HOST']?>/hotelbooking/index.php/backend/hotel/add/room/<?=str_replace('=', '', $this->encrypt->encode($h_id))?>">insert type room</A>
		<?php endif; ?>
<?php else: ?>

<?php endif; ?>